package com.jay.aopproxy.config;

import com.jay.aopproxy.service.AccountService;
import com.jay.aopproxy.service.impl.AccountServiceImpl;
import org.springframework.context.annotation.*;

@EnableAspectJAutoProxy
@Configuration
public class CGLIBProxyConfig {

    @Bean
    @Scope(proxyMode = ScopedProxyMode.TARGET_CLASS)
    public AccountService accountService(){
        return new AccountServiceImpl();
    }
}
